/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

/**
 *
 * @author dennis
 */
public class BoxMovable extends Movable {
    
    boolean isFinished;
    
    /**
     * Creates a Box
     * @param xPos position on x
     * @param yPos position on y
     * @param isFinished if this box is located on a finishtile, true or false
     */
    public BoxMovable(int xPos, int yPos, boolean isFinished){
        
        super(xPos, yPos);
        
        this.isFinished = isFinished;
        
        if(isFinished){
            this.setGraphicPath("../images/box_target_64.jpg");
        } else {
            this.setGraphicPath("../images/box_64.jpg");
        }
        
    }
    
    public BoxMovable(BoxMovable movable){
        super(movable);
        
        this.isFinished = movable.isFinished;
        
        if(isFinished){
            this.setGraphicPath("../images/box_target_64.jpg");
        } else {
            this.setGraphicPath("../images/box_64.jpg");
        }
    }
        
    public void setFinished(){
        this.isFinished = true;
        this.setGraphicPath("../images/box_target_64.jpg");
    }
    
    public void setNotFinished(){
        this.isFinished = false;
        this.setGraphicPath("../images/box_64.jpg");
    }
}
